package org.qly.springboot_1.Controller;

import org.qly.springboot_1.Service.StudentService;
import org.qly.springboot_1.domain.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class StudentController {
    //@RequestMapping("/student")
    @Autowired
    private StudentService studentService;

    public Student getStudent(){
        return studentService.getStudent();
    }
}
